package Bank;

public class Apl
{
	private static CommandParser 	cmd;
	
	public static void main(String[] args)
	{
		Bank apl = new Bank();
		apl.addAccountOwner("Testa", "Jonny", "Deventer", 109, 0, 0);
		apl.addAccountOwner("Teste", "Jonny", "Deventer", 109, 0, 0);
		apl.addAccountOwner("Testw", "Jonny", "Deventer", 109, 0, 0);
		apl.addAccountOwner("Testq", "Jonny", "Deventer", 109, 0, 0);
		apl.addAccountOwner("Testc", "Jonny", "Deventer", 109, 0, 0);
		apl.addAccountOwner("Testr", "Jonny", "Deventer", 109, 0, 0);
		apl.addAccountOwner("Testz", "Jonny", "Deventer", 109, 0, 0);
		apl.printMembers();
		Seperator();
		apl.addNormalBankAccount(apl.getAccountIDOutName("Testz"), 123.45);
		apl.addInternetBankAcount(apl.getAccountIDOutName("Testa"), 9000.01);
		apl.addSavingBankAccount(apl.getAccountIDOutName("Testq"), 1.07, 3.1, "13-1-2011", 5);
		apl.printBankAccounts();
		Seperator();
		cmd = new CommandParser(apl);
		cmd.readConsole();
	}

	private static void Seperator() //code autocompletion made it!
	{
		System.out.println("\n==========================================\n");
	}
}
